import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import { createApp } from 'vue'
import router from '@/router'
import { appStore } from '@/store'
import App from './App.vue'
import { initTheme } from './theme'
import 'tailwindcss/tailwind.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import 'element-plus/dist/index.css'
import '@/mock/index.js'

initTheme()
const app = createApp(App)

app.use(appStore)
  .use(ElementPlus)
  .use(router)
// .use(customComponents)
  .mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
